package com.puris.service.teacher;

import com.puris.pojo.Competition;
import com.puris.pojo.Teacher;

import javax.servlet.http.HttpSession;
import java.sql.SQLException;

/**
 * @author Sonata
 * @data 2021/11/14 10:35
 */
public interface Service {
    public Teacher login(String id, String password, HttpSession session);

    public boolean changePassword(HttpSession session, String oldPassword, String newPassword);

    public Competition selectCompetition(String teacherId) throws SQLException;

    public boolean teachCompetition(String teacherId, String competitionId, String competitionName, String date, String describe) throws SQLException;
}
